<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<%=cp%>/data/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	
function sendIt(){
		
		f = document.myForm;
		
		if(f.mode.value == "nationSave"){			
		
		f.action = "<%=cp%>/admin/hotelNationWrite.action";
		
		}else if (f.mode.value=="hotelNationUpdated") {
			f.action = "<%=cp%>/admin/hotelNationWrite.action";	
		}
		f.submit();
		
	}
	
</script>
</head>
<body>
<form action="" name="myForm" method="post" >
<table>
	<tr>
	<td>
		<select name="nation">
			<option value="국가선택" selected="selected">국가선택</option>
			<option value="일본">일본</option>
			<option value="중국">중국</option>
			<option value="아시아">아시아</option>
			<option value="미국">미국</option>
			<option value="유럽">유럽</option>
			<option value="남태평양">남태평양</option>
		</select>
		
		<select name="city">
			<option value="도시선택" selected="selected">도시선택</option>
			<option value="도쿄">도쿄</option>
			<option value="북경">북경</option>
			<option value="방콕">방콕</option>
			<option value="LA">LA</option>
			<option value="런던">런던</option>
			<option value="시드니">시드니</option>
		</select>
	</td>
	</tr>
	<tr>
	<td>
	<input type="hidden"  name="mode" value="${mode}"/>
	<input type="button" value="전송" onclick="sendIt();">
	</td>
	</tr>
</table>
</form>
</body>
</html>